package com.example.everying.model.entity.pay;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * @program: everything
 * @description: 转账明细表
 * @author: szy
 * @create: 2025-05-14 16:45
 **/
@Data
@TableName("transfer_detail")
public class TransferDetailEntity implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @NotNull(message = "批次ID不能为空")
    @ApiModelProperty(value = "批次ID")
    private Long batchId;

    @NotBlank(message = "平台明细单号不能为空")
    @ApiModelProperty(value = "平台明细单号")
    private String detailNo;

    @ApiModelProperty(value = "渠道明细单号")
    private String channelDetailNo;

    @NotBlank(message = "账户类型不能为空")
    @ApiModelProperty(value = "账户类型")
    private String accountType;

    @ApiModelProperty(value = "收款方真实姓名")
    private String accountName;

    @NotBlank(message = "收款方账号不能为空")
    @ApiModelProperty(value = "收款方账号")
    private String accountNo;

    @ApiModelProperty(value = "微信openid")
    private String openid;

    @ApiModelProperty(value = "银行编码")
    private String bankCode;

    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @NotNull(message = "转账金额不能为空")
    @ApiModelProperty(value = "转账金额(分)")
    private Integer transferAmount;

    @ApiModelProperty(value = "转账备注")
    private String transferRemark;

    @NotBlank(message = "明细状态不能为空")
    @ApiModelProperty(value = "明细状态")
    private String detailStatus;

    @ApiModelProperty(value = "失败原因")
    private String failReason;

    @ApiModelProperty(value = "转账完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime transferTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "扩展信息")
    private String extInfo;
}
